package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 认领单产品信息表
 * </p>
 *
 * @author long
 * @since 2024-11-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_claim_product")
public class ClaimProductDo extends Model<ClaimProductDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 认领单主表id
     */
    @TableField("claim_id")
    private Long claimId;

    /**
     * 产品id
     */
    @TableField("product_id")
    private Long productId;

    /**
     * sku
     */
    @TableField("sku")
    private String sku;

    /**
     * 亚马逊sku
     */
    @TableField("fn_sku")
    private String fnSku;

    /**
     * 正品数
     */
    @TableField("good_qty")
    private Integer goodQty;

    /**
     * 次品数
     */
    @TableField("bad_qty")
    private Integer badQty;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
